package com.itheima.service.impl;

import com.itheima.mapper.MemberDao;
import com.itheima.pojo.MemberReport;
import com.itheima.service.IMemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IMemberServiceImpl implements IMemberService {

    @Autowired
    private MemberDao memberDao;

    @Override
    public  List<MemberReport> getMemberCountByDate(List<String> dateList) {

        return memberDao.getMemberCountByDate(dateList);
    }

    @Override
    public Integer getTodayNewMember(String date) {
        return memberDao.getTodayNewMember(date);
    }

    @Override
    public Integer getNewMember(List<String> monthDate) {
        return memberDao.getNewMember(monthDate);
    }

    @Override
    public Integer getTotalMember() {
        return memberDao.getTotalMember();
    }
}
